<template>
    <view class="content">
        <view class="top">
            <view class="title">{{data.title}}</view>
            <view class="time">{{data.date}}</view>
        </view>
        <view class="box">
            <u-parse :html="data.details"></u-parse>
        </view>
    </view>
</template>

<script>
    export default {
        data() {
            return {
                id: '',
                data: {},
            };
        },
        onLoad(option) {
            this.id = option.id
            this.getData()
        },
        methods: {
            getData() {
            	this.$ajax('my_service_detail', {
            		user_token: this.$getSync('userToken'),
            		id: this.id, //服务id
            	}).then(ret => {
            		if (ret.success == 1000) {
            			this.data = ret.detail
            		} else {
            			this.$toast(ret.msg);
            		}
            	});
            },
        }
    };
</script>

<style lang="scss">
    page{
        background-color: #fff;
        border-top: 2rpx solid #eee;
    }
    .content{
        padding: 35rpx 25rpx;
    }
    .top{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding-bottom: 35rpx;
        border-bottom: 2rpx solid #eee;
    }
    .title{
        font-size: 36rpx;
        font-weight: bold;
        padding-bottom: 10rpx;
    }
    .time{
        font-size: 24rpx;
        color: #666666;
    }
    .box{
        padding: 40rpx 0 150rpx;
    }

</style>
